package com.suzj.extraenchantments.enchant.Ench_03;

import com.suzj.extraenchantments.Config;
import com.suzj.extraenchantments.enchant.EnchantmentTypeEE;

import net.minecraft.world.entity.EquipmentSlot;
import net.minecraft.world.item.enchantment.Enchantment;


public class EnchantmentBehead extends Enchantment {
    public EnchantmentBehead() {
        super(Enchantment.Rarity.RARE, EnchantmentTypeEE.AXE,  new EquipmentSlot[]{EquipmentSlot.MAINHAND});
    }

    public int getMaxLevel() {
        if (((Boolean) Config.SERVER.isBehead.get()).booleanValue()) {
            return 1;
        }
        return 0;
    }

    public int getMinCost(int p_77321_1_) {
        return 30;
    }

    public int getMaxCost(int p_223551_1_) {
        return 60;
    }
}